Fix data-loss with --version.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Nov 2012 17:29:52 +0000 (09:29 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Nov 2012 17:29:52 +0000 (09:29 -0800)
commitb321cb8784c7593475168f6491f3fbad8e2dda93
tree0ae281cdaeabf0b91b676b366a4e63fd1f6592c6
parentd83810d9b62efaa7bd6a5cf76f38ea3ba1a487ae
Fix data-loss with --version.

* emacs.c (close_output_streams): Use strerror, not emacs_strerror,
as we can't assume that emacs_strerror is initialized, and strerror
is good enough here.
(main): Invoke atexit earlier, to catch earlier instances of
sending data to stdout and exiting, e.g., "emacs --version >/dev/full".
src/ChangeLog
src/emacs.c